local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1, L29_1, L30_1, L31_1, L32_1, L33_1, L34_1, L35_1, L36_1, L37_1, L38_1, L39_1, L40_1, L41_1, L42_1, L43_1, L44_1, L45_1, L46_1, L47_1, L48_1, L49_1, L50_1, L51_1, L52_1, L53_1
L0_1 = {}
L0_1.group_id = 201011062
L1_1 = {}
L1_1.group_id = 201011062
L1_1.gadget_riddle_hint = 62001
L1_1.gadget_riddle_1 = 62002
L1_1.gadget_riddle_2 = 62003
L1_1.gadget_riddle_3 = 62004
L1_1.gadget_riddle_4 = 62005
L1_1.gadget_chest = 62006
L1_1.gadget_riddle_5 = 62007
L1_1.gadget_riddle_6 = 62008
L1_1.gadget_riddle_7 = 62009
L1_1.gadget_riddle_8 = 62010
L1_1.gadget_riddle_9 = 62011
L1_1.gadget_riddle_10 = 62012
L1_1.gadget_riddle_11 = 62013
L1_1.gadget_riddle_12 = 62014
L1_1.gadget_riddle_13 = 62015
L1_1.gadget_riddle_14 = 62016
L1_1.group_id_2 = 201011060
L1_1.group_id_3 = 201011061
L1_1.gadget_riddle_15 = 62019
L1_1.gadget_riddle_16 = 62020
L1_1.gadget_riddle_17 = 62021
L1_1.gadget_riddle_18 = 62022
L1_1.gadget_chest_2 = 62023
L1_1.gadget_riddle_19 = 62024
L1_1.gadget_riddle_20 = 62025
L1_1.gadget_riddle_21 = 62026
L1_1.gadget_riddle_22 = 62027
L1_1.gadget_riddle_23 = 62028
L1_1.gadget_riddle_24 = 62029
L1_1.gadget_riddle_25 = 62030
L1_1.gadget_riddle_26 = 62031
L1_1.gadget_riddle_27 = 62032
L1_1.gadget_riddle_28 = 62033
L1_1.gadget_riddle_29 = 62034
L1_1.gadget_riddle_30 = 62035
L1_1.gadget_riddle_31 = 62036
L1_1.gadget_riddle_32 = 62037
L1_1.gadget_chest_3 = 62038
L1_1.gadget_riddle_33 = 62039
L1_1.gadget_riddle_34 = 62040
L1_1.gadget_riddle_35 = 62041
L1_1.gadget_riddle_36 = 62042
L1_1.gadget_riddle_37 = 62043
L1_1.gadget_riddle_38 = 62044
L1_1.gadget_riddle_39 = 62045
L1_1.gadget_riddle_40 = 62046
L1_1.gadget_riddle_41 = 62047
L1_1.gadget_riddle_42 = 62048
L2_1 = {}
L3_1 = 62002
L4_1 = 62003
L5_1 = 62004
L6_1 = 62005
L7_1 = 62007
L8_1 = 62008
L9_1 = 62009
L10_1 = 62010
L11_1 = 62011
L12_1 = 62012
L13_1 = 62013
L14_1 = 62014
L15_1 = 62015
L16_1 = 62016
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
L2_1[9] = L11_1
L2_1[10] = L12_1
L2_1[11] = L13_1
L2_1[12] = L14_1
L2_1[13] = L15_1
L2_1[14] = L16_1
L3_1 = {}
L4_1 = 62019
L5_1 = 62020
L6_1 = 62021
L7_1 = 62022
L8_1 = 62024
L9_1 = 62025
L10_1 = 62026
L11_1 = 62027
L12_1 = 62028
L13_1 = 62029
L14_1 = 62030
L15_1 = 62031
L16_1 = 62032
L17_1 = 62033
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
L3_1[11] = L14_1
L3_1[12] = L15_1
L3_1[13] = L16_1
L3_1[14] = L17_1
L4_1 = {}
L5_1 = 62034
L6_1 = 62035
L7_1 = 62036
L8_1 = 62037
L9_1 = 62039
L10_1 = 62040
L11_1 = 62041
L12_1 = 62042
L13_1 = 62043
L14_1 = 62044
L15_1 = 62045
L16_1 = 62046
L17_1 = 62047
L18_1 = 62048
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L4_1[8] = L12_1
L4_1[9] = L13_1
L4_1[10] = L14_1
L4_1[11] = L15_1
L4_1[12] = L16_1
L4_1[13] = L17_1
L4_1[14] = L18_1
L5_1 = {}
monsters = L5_1
L5_1 = {}
npcs = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 62001
L6_1.gadget_id = 70310012
L7_1 = {}
L7_1.x = -54.706
L7_1.y = 0.5
L7_1.z = 121.315
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 190.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L6_1.persistent = true
L7_1 = {}
L7_1.config_id = 62002
L7_1.gadget_id = 70310011
L8_1 = {}
L8_1.x = -60.276
L8_1.y = 0.486
L8_1.z = 100.028
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 0.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L7_1.persistent = true
L8_1 = {}
L8_1.config_id = 62003
L8_1.gadget_id = 70310011
L9_1 = {}
L9_1.x = -75.28
L9_1.y = 0.5
L9_1.z = 99.994
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L8_1.persistent = true
L9_1 = {}
L9_1.config_id = 62004
L9_1.gadget_id = 70310011
L10_1 = {}
L10_1.x = -60.303
L10_1.y = 0.5
L10_1.z = 115.019
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 0.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L9_1.persistent = true
L10_1 = {}
L10_1.config_id = 62005
L10_1.gadget_id = 70310011
L11_1 = {}
L11_1.x = -75.293
L11_1.y = 0.5
L11_1.z = 115.034
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L10_1.persistent = true
L11_1 = {}
L11_1.config_id = 62006
L11_1.gadget_id = 70900007
L12_1 = {}
L12_1.x = -54.675
L12_1.y = 0.949
L12_1.z = 121.317
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 270.4
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L11_1.isOneoff = true
L11_1.persistent = true
L12_1 = {}
L12_1.config_id = 62007
L12_1.gadget_id = 70310011
L13_1 = {}
L13_1.x = -75.293
L13_1.y = 0.5
L13_1.z = 107.528
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 0.0
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L12_1.persistent = true
L13_1 = {}
L13_1.config_id = 62008
L13_1.gadget_id = 70310011
L14_1 = {}
L14_1.x = -60.303
L14_1.y = 0.5
L14_1.z = 107.509
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 0.0
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L13_1.persistent = true
L14_1 = {}
L14_1.config_id = 62009
L14_1.gadget_id = 70310011
L15_1 = {}
L15_1.x = -67.79
L15_1.y = 0.5
L15_1.z = 115.019
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 0.0
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L14_1.persistent = true
L15_1 = {}
L15_1.config_id = 62010
L15_1.gadget_id = 70310011
L16_1 = {}
L16_1.x = -67.813
L16_1.y = 0.486
L16_1.z = 100.028
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 0.0
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L15_1.persistent = true
L16_1 = {}
L16_1.config_id = 62011
L16_1.gadget_id = 70310011
L17_1 = {}
L17_1.x = -72.872
L17_1.y = 0.5
L17_1.z = 105.038
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 0.0
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L16_1.persistent = true
L17_1 = {}
L17_1.config_id = 62012
L17_1.gadget_id = 70310011
L18_1 = {}
L18_1.x = -65.287
L18_1.y = 0.5
L18_1.z = 102.492
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 0.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L17_1.persistent = true
L18_1 = {}
L18_1.config_id = 62013
L18_1.gadget_id = 70310011
L19_1 = {}
L19_1.x = -62.765
L19_1.y = 0.5
L19_1.z = 110.1
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 0.0
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L18_1.persistent = true
L19_1 = {}
L19_1.config_id = 62014
L19_1.gadget_id = 70310011
L20_1 = {}
L20_1.x = -70.719
L20_1.y = 0.5
L20_1.z = 112.391
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 0.0
L20_1.y = 0.0
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 1
L19_1.persistent = true
L20_1 = {}
L20_1.config_id = 62015
L20_1.gadget_id = 70310011
L21_1 = {}
L21_1.x = -72.207
L21_1.y = 0.5
L21_1.z = 109.097
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 0.0
L21_1.y = 0.0
L21_1.z = 0.0
L20_1.rot = L21_1
L20_1.level = 1
L20_1.persistent = true
L21_1 = {}
L21_1.config_id = 62016
L21_1.gadget_id = 70310011
L22_1 = {}
L22_1.x = -63.966
L22_1.y = 0.5
L22_1.z = 105.843
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 0.0
L22_1.y = 0.0
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 1
L21_1.persistent = true
L22_1 = {}
L22_1.config_id = 62019
L22_1.gadget_id = 70310011
L23_1 = {}
L23_1.x = -60.276
L23_1.y = 7.386
L23_1.z = 100.028
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 0.0
L23_1.y = 0.0
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L22_1.persistent = true
L23_1 = {}
L23_1.config_id = 62020
L23_1.gadget_id = 70310011
L24_1 = {}
L24_1.x = -75.28
L24_1.y = 7.4
L24_1.z = 99.994
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 0.0
L24_1.y = 0.0
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L23_1.persistent = true
L24_1 = {}
L24_1.config_id = 62021
L24_1.gadget_id = 70310011
L25_1 = {}
L25_1.x = -60.303
L25_1.y = 7.4
L25_1.z = 115.019
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 0.0
L25_1.y = 0.0
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L24_1.persistent = true
L25_1 = {}
L25_1.config_id = 62022
L25_1.gadget_id = 70310011
L26_1 = {}
L26_1.x = -75.3
L26_1.y = 7.4
L26_1.z = 115.0
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 0.0
L26_1.y = 0.0
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 1
L25_1.persistent = true
L26_1 = {}
L26_1.config_id = 62023
L26_1.gadget_id = 70900007
L27_1 = {}
L27_1.x = -54.675
L27_1.y = 7.849
L27_1.z = 121.317
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 0.0
L27_1.y = 270.4
L27_1.z = 0.0
L26_1.rot = L27_1
L26_1.level = 1
L26_1.isOneoff = true
L26_1.persistent = true
L27_1 = {}
L27_1.config_id = 62024
L27_1.gadget_id = 70310011
L28_1 = {}
L28_1.x = -75.293
L28_1.y = 7.4
L28_1.z = 107.528
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 0.0
L28_1.y = 0.0
L28_1.z = 0.0
L27_1.rot = L28_1
L27_1.level = 1
L27_1.persistent = true
L28_1 = {}
L28_1.config_id = 62025
L28_1.gadget_id = 70310011
L29_1 = {}
L29_1.x = -60.303
L29_1.y = 7.4
L29_1.z = 107.509
L28_1.pos = L29_1
L29_1 = {}
L29_1.x = 0.0
L29_1.y = 0.0
L29_1.z = 0.0
L28_1.rot = L29_1
L28_1.level = 1
L28_1.persistent = true
L29_1 = {}
L29_1.config_id = 62026
L29_1.gadget_id = 70310011
L30_1 = {}
L30_1.x = -67.79
L30_1.y = 7.4
L30_1.z = 115.019
L29_1.pos = L30_1
L30_1 = {}
L30_1.x = 0.0
L30_1.y = 0.0
L30_1.z = 0.0
L29_1.rot = L30_1
L29_1.level = 1
L29_1.persistent = true
L30_1 = {}
L30_1.config_id = 62027
L30_1.gadget_id = 70310011
L31_1 = {}
L31_1.x = -67.813
L31_1.y = 7.386
L31_1.z = 100.028
L30_1.pos = L31_1
L31_1 = {}
L31_1.x = 0.0
L31_1.y = 0.0
L31_1.z = 0.0
L30_1.rot = L31_1
L30_1.level = 1
L30_1.persistent = true
L31_1 = {}
L31_1.config_id = 62028
L31_1.gadget_id = 70310011
L32_1 = {}
L32_1.x = -72.872
L32_1.y = 7.4
L32_1.z = 105.038
L31_1.pos = L32_1
L32_1 = {}
L32_1.x = 0.0
L32_1.y = 0.0
L32_1.z = 0.0
L31_1.rot = L32_1
L31_1.level = 1
L31_1.persistent = true
L32_1 = {}
L32_1.config_id = 62029
L32_1.gadget_id = 70310011
L33_1 = {}
L33_1.x = -65.287
L33_1.y = 7.4
L33_1.z = 102.492
L32_1.pos = L33_1
L33_1 = {}
L33_1.x = 0.0
L33_1.y = 0.0
L33_1.z = 0.0
L32_1.rot = L33_1
L32_1.level = 1
L32_1.persistent = true
L33_1 = {}
L33_1.config_id = 62030
L33_1.gadget_id = 70310011
L34_1 = {}
L34_1.x = -62.765
L34_1.y = 7.4
L34_1.z = 110.1
L33_1.pos = L34_1
L34_1 = {}
L34_1.x = 0.0
L34_1.y = 0.0
L34_1.z = 0.0
L33_1.rot = L34_1
L33_1.level = 1
L33_1.persistent = true
L34_1 = {}
L34_1.config_id = 62031
L34_1.gadget_id = 70310011
L35_1 = {}
L35_1.x = -70.719
L35_1.y = 7.4
L35_1.z = 112.391
L34_1.pos = L35_1
L35_1 = {}
L35_1.x = 0.0
L35_1.y = 0.0
L35_1.z = 0.0
L34_1.rot = L35_1
L34_1.level = 1
L34_1.persistent = true
L35_1 = {}
L35_1.config_id = 62032
L35_1.gadget_id = 70310011
L36_1 = {}
L36_1.x = -72.207
L36_1.y = 7.4
L36_1.z = 109.097
L35_1.pos = L36_1
L36_1 = {}
L36_1.x = 0.0
L36_1.y = 0.0
L36_1.z = 0.0
L35_1.rot = L36_1
L35_1.level = 1
L35_1.persistent = true
L36_1 = {}
L36_1.config_id = 62033
L36_1.gadget_id = 70310011
L37_1 = {}
L37_1.x = -63.966
L37_1.y = 7.4
L37_1.z = 105.843
L36_1.pos = L37_1
L37_1 = {}
L37_1.x = 0.0
L37_1.y = 0.0
L37_1.z = 0.0
L36_1.rot = L37_1
L36_1.level = 1
L36_1.persistent = true
L37_1 = {}
L37_1.config_id = 62034
L37_1.gadget_id = 70310011
L38_1 = {}
L38_1.x = -60.276
L38_1.y = 14.686
L38_1.z = 100.028
L37_1.pos = L38_1
L38_1 = {}
L38_1.x = 0.0
L38_1.y = 0.0
L38_1.z = 0.0
L37_1.rot = L38_1
L37_1.level = 1
L37_1.persistent = true
L38_1 = {}
L38_1.config_id = 62035
L38_1.gadget_id = 70310011
L39_1 = {}
L39_1.x = -75.28
L39_1.y = 14.7
L39_1.z = 99.994
L38_1.pos = L39_1
L39_1 = {}
L39_1.x = 0.0
L39_1.y = 0.0
L39_1.z = 0.0
L38_1.rot = L39_1
L38_1.level = 1
L38_1.persistent = true
L39_1 = {}
L39_1.config_id = 62036
L39_1.gadget_id = 70310011
L40_1 = {}
L40_1.x = -60.303
L40_1.y = 14.7
L40_1.z = 115.019
L39_1.pos = L40_1
L40_1 = {}
L40_1.x = 0.0
L40_1.y = 0.0
L40_1.z = 0.0
L39_1.rot = L40_1
L39_1.level = 1
L39_1.persistent = true
L40_1 = {}
L40_1.config_id = 62037
L40_1.gadget_id = 70310011
L41_1 = {}
L41_1.x = -75.293
L41_1.y = 14.7
L41_1.z = 115.034
L40_1.pos = L41_1
L41_1 = {}
L41_1.x = 0.0
L41_1.y = 0.0
L41_1.z = 0.0
L40_1.rot = L41_1
L40_1.level = 1
L40_1.persistent = true
L41_1 = {}
L41_1.config_id = 62038
L41_1.gadget_id = 70900007
L42_1 = {}
L42_1.x = -54.675
L42_1.y = 15.149
L42_1.z = 121.317
L41_1.pos = L42_1
L42_1 = {}
L42_1.x = 0.0
L42_1.y = 270.4
L42_1.z = 0.0
L41_1.rot = L42_1
L41_1.level = 1
L41_1.isOneoff = true
L41_1.persistent = true
L42_1 = {}
L42_1.config_id = 62039
L42_1.gadget_id = 70310011
L43_1 = {}
L43_1.x = -75.293
L43_1.y = 14.7
L43_1.z = 107.528
L42_1.pos = L43_1
L43_1 = {}
L43_1.x = 0.0
L43_1.y = 0.0
L43_1.z = 0.0
L42_1.rot = L43_1
L42_1.level = 1
L42_1.persistent = true
L43_1 = {}
L43_1.config_id = 62040
L43_1.gadget_id = 70310011
L44_1 = {}
L44_1.x = -60.303
L44_1.y = 14.7
L44_1.z = 107.509
L43_1.pos = L44_1
L44_1 = {}
L44_1.x = 0.0
L44_1.y = 0.0
L44_1.z = 0.0
L43_1.rot = L44_1
L43_1.level = 1
L43_1.persistent = true
L44_1 = {}
L44_1.config_id = 62041
L44_1.gadget_id = 70310011
L45_1 = {}
L45_1.x = -67.79
L45_1.y = 14.7
L45_1.z = 115.019
L44_1.pos = L45_1
L45_1 = {}
L45_1.x = 0.0
L45_1.y = 0.0
L45_1.z = 0.0
L44_1.rot = L45_1
L44_1.level = 1
L44_1.persistent = true
L45_1 = {}
L45_1.config_id = 62042
L45_1.gadget_id = 70310011
L46_1 = {}
L46_1.x = -67.813
L46_1.y = 14.686
L46_1.z = 100.028
L45_1.pos = L46_1
L46_1 = {}
L46_1.x = 0.0
L46_1.y = 0.0
L46_1.z = 0.0
L45_1.rot = L46_1
L45_1.level = 1
L45_1.persistent = true
L46_1 = {}
L46_1.config_id = 62043
L46_1.gadget_id = 70310011
L47_1 = {}
L47_1.x = -72.872
L47_1.y = 14.7
L47_1.z = 105.038
L46_1.pos = L47_1
L47_1 = {}
L47_1.x = 0.0
L47_1.y = 0.0
L47_1.z = 0.0
L46_1.rot = L47_1
L46_1.level = 1
L46_1.persistent = true
L47_1 = {}
L47_1.config_id = 62044
L47_1.gadget_id = 70310011
L48_1 = {}
L48_1.x = -65.287
L48_1.y = 14.7
L48_1.z = 102.492
L47_1.pos = L48_1
L48_1 = {}
L48_1.x = 0.0
L48_1.y = 0.0
L48_1.z = 0.0
L47_1.rot = L48_1
L47_1.level = 1
L47_1.persistent = true
L48_1 = {}
L48_1.config_id = 62045
L48_1.gadget_id = 70310011
L49_1 = {}
L49_1.x = -62.765
L49_1.y = 14.7
L49_1.z = 110.1
L48_1.pos = L49_1
L49_1 = {}
L49_1.x = 0.0
L49_1.y = 0.0
L49_1.z = 0.0
L48_1.rot = L49_1
L48_1.level = 1
L48_1.persistent = true
L49_1 = {}
L49_1.config_id = 62046
L49_1.gadget_id = 70310011
L50_1 = {}
L50_1.x = -70.719
L50_1.y = 14.7
L50_1.z = 112.391
L49_1.pos = L50_1
L50_1 = {}
L50_1.x = 0.0
L50_1.y = 0.0
L50_1.z = 0.0
L49_1.rot = L50_1
L49_1.level = 1
L49_1.persistent = true
L50_1 = {}
L50_1.config_id = 62047
L50_1.gadget_id = 70310011
L51_1 = {}
L51_1.x = -72.207
L51_1.y = 14.7
L51_1.z = 109.097
L50_1.pos = L51_1
L51_1 = {}
L51_1.x = 0.0
L51_1.y = 0.0
L51_1.z = 0.0
L50_1.rot = L51_1
L50_1.level = 1
L50_1.persistent = true
L51_1 = {}
L51_1.config_id = 62048
L51_1.gadget_id = 70310011
L52_1 = {}
L52_1.x = -63.966
L52_1.y = 14.7
L52_1.z = 105.843
L51_1.pos = L52_1
L52_1 = {}
L52_1.x = 0.0
L52_1.y = 0.0
L52_1.z = 0.0
L51_1.rot = L52_1
L51_1.level = 1
L51_1.persistent = true
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
L5_1[7] = L12_1
L5_1[8] = L13_1
L5_1[9] = L14_1
L5_1[10] = L15_1
L5_1[11] = L16_1
L5_1[12] = L17_1
L5_1[13] = L18_1
L5_1[14] = L19_1
L5_1[15] = L20_1
L5_1[16] = L21_1
L5_1[17] = L22_1
L5_1[18] = L23_1
L5_1[19] = L24_1
L5_1[20] = L25_1
L5_1[21] = L26_1
L5_1[22] = L27_1
L5_1[23] = L28_1
L5_1[24] = L29_1
L5_1[25] = L30_1
L5_1[26] = L31_1
L5_1[27] = L32_1
L5_1[28] = L33_1
L5_1[29] = L34_1
L5_1[30] = L35_1
L5_1[31] = L36_1
L5_1[32] = L37_1
L5_1[33] = L38_1
L5_1[34] = L39_1
L5_1[35] = L40_1
L5_1[36] = L41_1
L5_1[37] = L42_1
L5_1[38] = L43_1
L5_1[39] = L44_1
L5_1[40] = L45_1
L5_1[41] = L46_1
L5_1[42] = L47_1
L5_1[43] = L48_1
L5_1[44] = L49_1
L5_1[45] = L50_1
L5_1[46] = L51_1
gadgets = L5_1
L5_1 = {}
regions = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 1062017
L6_1.name = "GADGET_STATE_CHANGE_62017"
L7_1 = EventType
L7_1 = L7_1.EVENT_GADGET_STATE_CHANGE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_62017"
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_62017"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1062018
L7_1.name = "VARIABLE_CHANGE_62018"
L8_1 = EventType
L8_1 = L8_1.EVENT_VARIABLE_CHANGE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_VARIABLE_CHANGE_62018"
L7_1.action = "action_EVENT_VARIABLE_CHANGE_62018"
L7_1.trigger_count = 0
L5_1[1] = L6_1
L5_1[2] = L7_1
triggers = L5_1
L5_1 = {}
L6_1 = {}
L6_1.configId = 1
L6_1.name = "State_Floor_1"
L6_1.value = 0
L6_1.no_refresh = true
L7_1 = {}
L7_1.configId = 2
L7_1.name = "State_Floor_2"
L7_1.value = 0
L7_1.no_refresh = true
L8_1 = {}
L8_1.configId = 3
L8_1.name = "State_Floor_3"
L8_1.value = 0
L8_1.no_refresh = true
L9_1 = {}
L9_1.configId = 4
L9_1.name = "Door_Open_1"
L9_1.value = 0
L9_1.no_refresh = true
L10_1 = {}
L10_1.configId = 5
L10_1.name = "Door_Open_2"
L10_1.value = 0
L10_1.no_refresh = true
L11_1 = {}
L11_1.configId = 6
L11_1.name = "Door_Open_3"
L11_1.value = 0
L11_1.no_refresh = true
L12_1 = {}
L12_1.configId = 7
L12_1.name = "Right_Floor_1"
L12_1.value = 0
L12_1.no_refresh = true
L13_1 = {}
L13_1.configId = 8
L13_1.name = "Right_Floor_2"
L13_1.value = 0
L13_1.no_refresh = true
L14_1 = {}
L14_1.configId = 9
L14_1.name = "Right_Floor_3"
L14_1.value = 0
L14_1.no_refresh = true
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
L5_1[7] = L12_1
L5_1[8] = L13_1
L5_1[9] = L14_1
variables = L5_1
L5_1 = {}
L5_1.suite = 1
L5_1.end_suite = 0
L5_1.rand_suite = false
init_config = L5_1
L5_1 = {}
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L8_1 = 62001
L9_1 = 62002
L10_1 = 62003
L11_1 = 62004
L12_1 = 62005
L13_1 = 62006
L14_1 = 62007
L15_1 = 62008
L16_1 = 62009
L17_1 = 62010
L18_1 = 62011
L19_1 = 62012
L20_1 = 62013
L21_1 = 62014
L22_1 = 62015
L23_1 = 62016
L24_1 = 62019
L25_1 = 62020
L26_1 = 62021
L27_1 = 62022
L28_1 = 62023
L29_1 = 62024
L30_1 = 62025
L31_1 = 62026
L32_1 = 62027
L33_1 = 62028
L34_1 = 62029
L35_1 = 62030
L36_1 = 62031
L37_1 = 62032
L38_1 = 62033
L39_1 = 62034
L40_1 = 62035
L41_1 = 62036
L42_1 = 62037
L43_1 = 62038
L44_1 = 62039
L45_1 = 62040
L46_1 = 62041
L47_1 = 62042
L48_1 = 62043
L49_1 = 62044
L50_1 = 62045
L51_1 = 62046
L52_1 = 62047
L53_1 = 62048
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L7_1[5] = L12_1
L7_1[6] = L13_1
L7_1[7] = L14_1
L7_1[8] = L15_1
L7_1[9] = L16_1
L7_1[10] = L17_1
L7_1[11] = L18_1
L7_1[12] = L19_1
L7_1[13] = L20_1
L7_1[14] = L21_1
L7_1[15] = L22_1
L7_1[16] = L23_1
L7_1[17] = L24_1
L7_1[18] = L25_1
L7_1[19] = L26_1
L7_1[20] = L27_1
L7_1[21] = L28_1
L7_1[22] = L29_1
L7_1[23] = L30_1
L7_1[24] = L31_1
L7_1[25] = L32_1
L7_1[26] = L33_1
L7_1[27] = L34_1
L7_1[28] = L35_1
L7_1[29] = L36_1
L7_1[30] = L37_1
L7_1[31] = L38_1
L7_1[32] = L39_1
L7_1[33] = L40_1
L7_1[34] = L41_1
L7_1[35] = L42_1
L7_1[36] = L43_1
L7_1[37] = L44_1
L7_1[38] = L45_1
L7_1[39] = L46_1
L7_1[40] = L47_1
L7_1[41] = L48_1
L7_1[42] = L49_1
L7_1[43] = L50_1
L7_1[44] = L51_1
L7_1[45] = L52_1
L7_1[46] = L53_1
L6_1.gadgets = L7_1
L7_1 = {}
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "GADGET_STATE_CHANGE_62017"
L9_1 = "VARIABLE_CHANGE_62018"
L7_1[1] = L8_1
L7_1[2] = L9_1
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L5_1[1] = L6_1
suites = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  L3_2 = L1_1.gadget_riddle_1
  if L2_2 ~= L3_2 then
    L2_2 = A1_2.param2
    L3_2 = L1_1.gadget_riddle_2
    if L2_2 ~= L3_2 then
      L2_2 = A1_2.param2
      L3_2 = L1_1.gadget_riddle_3
      if L2_2 ~= L3_2 then
        L2_2 = A1_2.param2
        L3_2 = L1_1.gadget_riddle_4
        if L2_2 ~= L3_2 then
          L2_2 = A1_2.param2
          L3_2 = L1_1.gadget_riddle_5
          if L2_2 ~= L3_2 then
            L2_2 = A1_2.param2
            L3_2 = L1_1.gadget_riddle_6
            if L2_2 ~= L3_2 then
              L2_2 = A1_2.param2
              L3_2 = L1_1.gadget_riddle_7
              if L2_2 ~= L3_2 then
                L2_2 = A1_2.param2
                L3_2 = L1_1.gadget_riddle_8
                if L2_2 ~= L3_2 then
                  L2_2 = A1_2.param2
                  L3_2 = L1_1.gadget_riddle_9
                  if L2_2 ~= L3_2 then
                    L2_2 = A1_2.param2
                    L3_2 = L1_1.gadget_riddle_10
                    if L2_2 ~= L3_2 then
                      L2_2 = A1_2.param2
                      L3_2 = L1_1.gadget_riddle_11
                      if L2_2 ~= L3_2 then
                        L2_2 = A1_2.param2
                        L3_2 = L1_1.gadget_riddle_12
                        if L2_2 ~= L3_2 then
                          L2_2 = A1_2.param2
                          L3_2 = L1_1.gadget_riddle_13
                          if L2_2 ~= L3_2 then
                            L2_2 = A1_2.param2
                            L3_2 = L1_1.gadget_riddle_14
                            if L2_2 ~= L3_2 then
                              L2_2 = A1_2.param2
                              L3_2 = L1_1.gadget_riddle_15
                              if L2_2 ~= L3_2 then
                                L2_2 = A1_2.param2
                                L3_2 = L1_1.gadget_riddle_16
                                if L2_2 ~= L3_2 then
                                  L2_2 = A1_2.param2
                                  L3_2 = L1_1.gadget_riddle_17
                                  if L2_2 ~= L3_2 then
                                    L2_2 = A1_2.param2
                                    L3_2 = L1_1.gadget_riddle_18
                                    if L2_2 ~= L3_2 then
                                      L2_2 = A1_2.param2
                                      L3_2 = L1_1.gadget_riddle_19
                                      if L2_2 ~= L3_2 then
                                        L2_2 = A1_2.param2
                                        L3_2 = L1_1.gadget_riddle_20
                                        if L2_2 ~= L3_2 then
                                          L2_2 = A1_2.param2
                                          L3_2 = L1_1.gadget_riddle_21
                                          if L2_2 ~= L3_2 then
                                            L2_2 = A1_2.param2
                                            L3_2 = L1_1.gadget_riddle_22
                                            if L2_2 ~= L3_2 then
                                              L2_2 = A1_2.param2
                                              L3_2 = L1_1.gadget_riddle_23
                                              if L2_2 ~= L3_2 then
                                                L2_2 = A1_2.param2
                                                L3_2 = L1_1.gadget_riddle_24
                                                if L2_2 ~= L3_2 then
                                                  L2_2 = A1_2.param2
                                                  L3_2 = L1_1.gadget_riddle_25
                                                  if L2_2 ~= L3_2 then
                                                    L2_2 = A1_2.param2
                                                    L3_2 = L1_1.gadget_riddle_26
                                                    if L2_2 ~= L3_2 then
                                                      L2_2 = A1_2.param2
                                                      L3_2 = L1_1.gadget_riddle_27
                                                      if L2_2 ~= L3_2 then
                                                        L2_2 = A1_2.param2
                                                        L3_2 = L1_1.gadget_riddle_28
                                                        if L2_2 ~= L3_2 then
                                                          L2_2 = A1_2.param2
                                                          L3_2 = L1_1.gadget_riddle_29
                                                          if L2_2 ~= L3_2 then
                                                            L2_2 = A1_2.param2
                                                            L3_2 = L1_1.gadget_riddle_30
                                                            if L2_2 ~= L3_2 then
                                                              L2_2 = A1_2.param2
                                                              L3_2 = L1_1.gadget_riddle_31
                                                              if L2_2 ~= L3_2 then
                                                                L2_2 = A1_2.param2
                                                                L3_2 = L1_1.gadget_riddle_32
                                                                if L2_2 ~= L3_2 then
                                                                  L2_2 = A1_2.param2
                                                                  L3_2 = L1_1.gadget_riddle_33
                                                                  if L2_2 ~= L3_2 then
                                                                    L2_2 = A1_2.param2
                                                                    L3_2 = L1_1.gadget_riddle_34
                                                                    if L2_2 ~= L3_2 then
                                                                      L2_2 = A1_2.param2
                                                                      L3_2 = L1_1.gadget_riddle_35
                                                                      if L2_2 ~= L3_2 then
                                                                        L2_2 = A1_2.param2
                                                                        L3_2 = L1_1.gadget_riddle_36
                                                                        if L2_2 ~= L3_2 then
                                                                          L2_2 = A1_2.param2
                                                                          L3_2 = L1_1.gadget_riddle_37
                                                                          if L2_2 ~= L3_2 then
                                                                            L2_2 = A1_2.param2
                                                                            L3_2 = L1_1.gadget_riddle_38
                                                                            if L2_2 ~= L3_2 then
                                                                              L2_2 = A1_2.param2
                                                                              L3_2 = L1_1.gadget_riddle_39
                                                                              if L2_2 ~= L3_2 then
                                                                                L2_2 = A1_2.param2
                                                                                L3_2 = L1_1.gadget_riddle_40
                                                                                if L2_2 ~= L3_2 then
                                                                                  L2_2 = A1_2.param2
                                                                                  L3_2 = L1_1.gadget_riddle_41
                                                                                  if L2_2 ~= L3_2 then
                                                                                    L2_2 = A1_2.param2
                                                                                    L3_2 = L1_1.gadget_riddle_42
                                                                                    if L2_2 ~= L3_2 then
                                                                                      L2_2 = false
                                                                                      return L2_2
                                                                                    end
                                                                                  end
                                                                                end
                                                                              end
                                                                            end
                                                                          end
                                                                        end
                                                                      end
                                                                    end
                                                                  end
                                                                end
                                                              end
                                                            end
                                                          end
                                                        end
                                                      end
                                                    end
                                                  end
                                                end
                                              end
                                            end
                                          end
                                        end
                                      end
                                    end
                                  end
                                end
                              end
                            end
                          end
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_62017 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
  L2_2 = ScriptLib
  L2_2 = L2_2.GetCurTriggerCount
  L3_2 = A0_2
  L2_2 = L2_2(L3_2)
  if L2_2 == 0 then
    L2_2 = ScriptLib
    L2_2 = L2_2.MarkPlayerAction
    L3_2 = A0_2
    L4_2 = 5007
    L5_2 = 1
    L6_2 = 1
    L2_2(L3_2, L4_2, L5_2, L6_2)
  end
  L2_2 = 1
  L3_2 = 14
  L4_2 = 1
  for L5_2 = L2_2, L3_2, L4_2 do
    L6_2 = A1_2.param2
    L7_2 = L2_1[L5_2]
    if L6_2 == L7_2 then
      L6_2 = A1_2.param1
      L7_2 = GadgetState
      L7_2 = L7_2.GearStart
      if L6_2 == L7_2 then
        L6_2 = ScriptLib
        L6_2 = L6_2.ChangeGroupVariableValue
        L7_2 = A0_2
        L8_2 = "State_Floor_1"
        L9_2 = 1
        L6_2(L7_2, L8_2, L9_2)
        L6_2 = ScriptLib
        L6_2 = L6_2.GetGadgetStateByConfigId
        L7_2 = A0_2
        L8_2 = L1_1.group_id
        L9_2 = L3_1[L5_2]
        L6_2 = L6_2(L7_2, L8_2, L9_2)
        L7_2 = GadgetState
        L7_2 = L7_2.Default
        if L6_2 == L7_2 then
          L6_2 = ScriptLib
          L6_2 = L6_2.SetGroupGadgetStateByConfigId
          L7_2 = A0_2
          L8_2 = L1_1.group_id
          L9_2 = L3_1[L5_2]
          L10_2 = GadgetState
          L10_2 = L10_2.GearAction1
          L6_2(L7_2, L8_2, L9_2, L10_2)
        end
        L6_2 = ScriptLib
        L6_2 = L6_2.GetGadgetStateByConfigId
        L7_2 = A0_2
        L8_2 = L1_1.group_id
        L9_2 = L4_1[L5_2]
        L6_2 = L6_2(L7_2, L8_2, L9_2)
        L7_2 = GadgetState
        L7_2 = L7_2.Default
        if L6_2 == L7_2 then
          L6_2 = ScriptLib
          L6_2 = L6_2.SetGroupGadgetStateByConfigId
          L7_2 = A0_2
          L8_2 = L1_1.group_id
          L9_2 = L4_1[L5_2]
          L10_2 = GadgetState
          L10_2 = L10_2.GearAction1
          L6_2(L7_2, L8_2, L9_2, L10_2)
        end
        break
      end
    end
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetGroupVariableValue
  L3_2 = A0_2
  L4_2 = "Door_Open_1"
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 == 0 then
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_5
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_5
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_160
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_1
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_1
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_160
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_3
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_3
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_160
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_chest
    L6_2 = GadgetState
    L6_2 = L6_2.GearStart
    L2_2(L3_2, L4_2, L5_2, L6_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupVariableValueByGroup
    L3_2 = A0_2
    L4_2 = "Door_Open_1"
    L5_2 = 1
    L6_2 = L1_1.group_id
    L2_2(L3_2, L4_2, L5_2, L6_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.MarkPlayerAction
    L3_2 = A0_2
    L4_2 = 5007
    L5_2 = 2
    L6_2 = 2
    L2_2(L3_2, L4_2, L5_2, L6_2)
  end
  ::lbl_160::
  L2_2 = 1
  L3_2 = 14
  L4_2 = 1
  for L5_2 = L2_2, L3_2, L4_2 do
    L6_2 = A1_2.param2
    L7_2 = L3_1[L5_2]
    if L6_2 == L7_2 then
      L6_2 = A1_2.param1
      L7_2 = GadgetState
      L7_2 = L7_2.GearStart
      if L6_2 == L7_2 then
        L6_2 = ScriptLib
        L6_2 = L6_2.ChangeGroupVariableValue
        L7_2 = A0_2
        L8_2 = "State_Floor_2"
        L9_2 = 1
        L6_2(L7_2, L8_2, L9_2)
        L6_2 = ScriptLib
        L6_2 = L6_2.GetGadgetStateByConfigId
        L7_2 = A0_2
        L8_2 = L1_1.group_id
        L9_2 = L2_1[L5_2]
        L6_2 = L6_2(L7_2, L8_2, L9_2)
        L7_2 = GadgetState
        L7_2 = L7_2.Default
        if L6_2 == L7_2 then
          L6_2 = ScriptLib
          L6_2 = L6_2.SetGroupGadgetStateByConfigId
          L7_2 = A0_2
          L8_2 = L1_1.group_id
          L9_2 = L2_1[L5_2]
          L10_2 = GadgetState
          L10_2 = L10_2.GearAction1
          L6_2(L7_2, L8_2, L9_2, L10_2)
        end
        L6_2 = ScriptLib
        L6_2 = L6_2.GetGadgetStateByConfigId
        L7_2 = A0_2
        L8_2 = L1_1.group_id
        L9_2 = L4_1[L5_2]
        L6_2 = L6_2(L7_2, L8_2, L9_2)
        L7_2 = GadgetState
        L7_2 = L7_2.Default
        if L6_2 == L7_2 then
          L6_2 = ScriptLib
          L6_2 = L6_2.SetGroupGadgetStateByConfigId
          L7_2 = A0_2
          L8_2 = L1_1.group_id
          L9_2 = L4_1[L5_2]
          L10_2 = GadgetState
          L10_2 = L10_2.GearAction1
          L6_2(L7_2, L8_2, L9_2, L10_2)
        end
        break
      end
    end
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetGroupVariableValue
  L3_2 = A0_2
  L4_2 = "Door_Open_2"
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 == 0 then
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_15
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_15
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_326
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_16
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_16
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_326
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_17
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_17
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_326
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_18
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_18
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_326
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_chest_2
    L6_2 = GadgetState
    L6_2 = L6_2.GearStart
    L2_2(L3_2, L4_2, L5_2, L6_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupVariableValueByGroup
    L3_2 = A0_2
    L4_2 = "Door_Open_2"
    L5_2 = 1
    L6_2 = L1_1.group_id
    L2_2(L3_2, L4_2, L5_2, L6_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.MarkPlayerAction
    L3_2 = A0_2
    L4_2 = 5007
    L5_2 = 2
    L6_2 = 3
    L2_2(L3_2, L4_2, L5_2, L6_2)
  end
  ::lbl_326::
  L2_2 = 1
  L3_2 = 14
  L4_2 = 1
  for L5_2 = L2_2, L3_2, L4_2 do
    L6_2 = A1_2.param2
    L7_2 = L4_1[L5_2]
    if L6_2 == L7_2 then
      L6_2 = A1_2.param1
      L7_2 = GadgetState
      L7_2 = L7_2.GearStart
      if L6_2 == L7_2 then
        L6_2 = ScriptLib
        L6_2 = L6_2.ChangeGroupVariableValue
        L7_2 = A0_2
        L8_2 = "State_Floor_3"
        L9_2 = 1
        L6_2(L7_2, L8_2, L9_2)
        L6_2 = ScriptLib
        L6_2 = L6_2.GetGadgetStateByConfigId
        L7_2 = A0_2
        L8_2 = L1_1.group_id
        L9_2 = L2_1[L5_2]
        L6_2 = L6_2(L7_2, L8_2, L9_2)
        L7_2 = GadgetState
        L7_2 = L7_2.Default
        if L6_2 == L7_2 then
          L6_2 = ScriptLib
          L6_2 = L6_2.SetGroupGadgetStateByConfigId
          L7_2 = A0_2
          L8_2 = L1_1.group_id
          L9_2 = L2_1[L5_2]
          L10_2 = GadgetState
          L10_2 = L10_2.GearAction1
          L6_2(L7_2, L8_2, L9_2, L10_2)
        end
        L6_2 = ScriptLib
        L6_2 = L6_2.GetGadgetStateByConfigId
        L7_2 = A0_2
        L8_2 = L1_1.group_id
        L9_2 = L3_1[L5_2]
        L6_2 = L6_2(L7_2, L8_2, L9_2)
        L7_2 = GadgetState
        L7_2 = L7_2.Default
        if L6_2 == L7_2 then
          L6_2 = ScriptLib
          L6_2 = L6_2.SetGroupGadgetStateByConfigId
          L7_2 = A0_2
          L8_2 = L1_1.group_id
          L9_2 = L3_1[L5_2]
          L10_2 = GadgetState
          L10_2 = L10_2.GearAction1
          L6_2(L7_2, L8_2, L9_2, L10_2)
        end
        break
      end
    end
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetGroupVariableValue
  L3_2 = A0_2
  L4_2 = "Door_Open_3"
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 == 0 then
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_29
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_29
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_579
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_30
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_30
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_579
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_31
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_31
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_579
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_32
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_32
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_579
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_33
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_33
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_579
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_34
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_34
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_579
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_35
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_35
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_579
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.GetGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_riddle_36
    L2_2 = L2_2(L3_2, L4_2, L5_2)
    L3_2 = GadgetState
    L3_2 = L3_2.GearStart
    if L2_2 ~= L3_2 then
      L2_2 = ScriptLib
      L2_2 = L2_2.GetGadgetStateByConfigId
      L3_2 = A0_2
      L4_2 = L1_1.group_id
      L5_2 = L1_1.gadget_riddle_36
      L2_2 = L2_2(L3_2, L4_2, L5_2)
      L3_2 = GadgetState
      L3_2 = L3_2.GearAction1
      if L2_2 ~= L3_2 then
        goto lbl_579
      end
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupGadgetStateByConfigId
    L3_2 = A0_2
    L4_2 = L1_1.group_id
    L5_2 = L1_1.gadget_chest_3
    L6_2 = GadgetState
    L6_2 = L6_2.GearStart
    L2_2(L3_2, L4_2, L5_2, L6_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupVariableValueByGroup
    L3_2 = A0_2
    L4_2 = "Door_Open_3"
    L5_2 = 1
    L6_2 = L1_1.group_id
    L2_2(L3_2, L4_2, L5_2, L6_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.MarkPlayerAction
    L3_2 = A0_2
    L4_2 = 5007
    L5_2 = 2
    L6_2 = 4
    L2_2(L3_2, L4_2, L5_2, L6_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.MarkPlayerAction
    L3_2 = A0_2
    L4_2 = 5007
    L5_2 = 3
    L6_2 = 5
    L2_2(L3_2, L4_2, L5_2, L6_2)
  end
  ::lbl_579::
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_62017 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param1
  L3_2 = A1_2.param2
  if L2_2 == L3_2 then
    L2_2 = false
    return L2_2
  end
  L2_2 = A1_2.param1
  if L2_2 < 0 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_VARIABLE_CHANGE_62018 = L5_1
function L5_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
  L2_2 = A1_2.param1
  if 4 <= L2_2 then
    L2_2 = 1
    L3_2 = 14
    L4_2 = 1
    for L5_2 = L2_2, L3_2, L4_2 do
      L6_2 = ScriptLib
      L6_2 = L6_2.SetGroupGadgetStateByConfigId
      L7_2 = A0_2
      L8_2 = L1_1.group_id
      L9_2 = L2_1[L5_2]
      L10_2 = GadgetState
      L10_2 = L10_2.Default
      L6_2(L7_2, L8_2, L9_2, L10_2)
      L6_2 = ScriptLib
      L6_2 = L6_2.SetGroupGadgetStateByConfigId
      L7_2 = A0_2
      L8_2 = L1_1.group_id
      L9_2 = L3_1[L5_2]
      L10_2 = GadgetState
      L10_2 = L10_2.Default
      L6_2(L7_2, L8_2, L9_2, L10_2)
      L6_2 = ScriptLib
      L6_2 = L6_2.SetGroupGadgetStateByConfigId
      L7_2 = A0_2
      L8_2 = L1_1.group_id
      L9_2 = L4_1[L5_2]
      L10_2 = GadgetState
      L10_2 = L10_2.Default
      L6_2(L7_2, L8_2, L9_2, L10_2)
    end
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupVariableValue
    L3_2 = A0_2
    L4_2 = "State_Floor_1"
    L5_2 = 0
    L2_2(L3_2, L4_2, L5_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupVariableValue
    L3_2 = A0_2
    L4_2 = "State_Floor_2"
    L5_2 = 0
    L2_2(L3_2, L4_2, L5_2)
    L2_2 = ScriptLib
    L2_2 = L2_2.SetGroupVariableValue
    L3_2 = A0_2
    L4_2 = "State_Floor_3"
    L5_2 = 0
    L2_2(L3_2, L4_2, L5_2)
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_VARIABLE_CHANGE_62018 = L5_1
